var seebyid = function seebyid(id) {
    $.ajax({
        type: "POST",
        url: "selNewsServlet",
        data: {
            op: "byid",
            id: id
        },
        dataType: "Json",
        success: function (data) {				//成功后触发
            if (data != null) {
                $("#news").find("h1").html(data.news.newstitle);
                $("#news").find(".content").html(data.news.newscontent);
            } else {

            }
        },
        error: function (jqxhr, textstatus, errorThrown) {		//发生错误时触发
            console.log("错误");
        }
    })
};
seebyid(id);